home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / Makefile.in < prev    next >
Makefile  |  1999-01-14  |  18KB  |  502 lines

  1. ############################################################
  2. #
  3. # $Id: Makefile.in,v 1.50 1998/06/18 14:55:00 ddenholm Exp $
  4. #
  5. # GNUPLOT Makefile.in for autoconf (Unix X11 support)
  6. # Adapted from makefile.unx by djm@gnu.ai.mit.edu
  7. ############################################################
  8.  
  9. # default target
  10.  
  11. all: @ERRORFIX@ gnuplot @GNUPLOT_X11@ doc demo/binary1
  12.  
  13.  
  14. # this tells GNU make not to export variables into the environment
  15. # But other makes don't understand its significance, so it must
  16. # not be the first target in the file. So it is here, before
  17. # any variables are created, but after the default target
  18. .NOEXPORT:
  19.  
  20. SHELL = /bin/sh
  21.  
  22. PACKAGE=@PACKAGE@
  23. VERSION=@VERSION@
  24.  
  25. prefix = @prefix@
  26. exec_prefix = @exec_prefix@
  27. bindir = @bindir@
  28. datadir = @datadir@
  29. includedir = @includedir@
  30. libdir = @libdir@
  31. mandir = @mandir@
  32. srcdir = @srcdir@
  33. top_builddir = .
  34. top_srcdir = @top_srcdir@
  35. VPATH = @srcdir@
  36. @SET_MAKE@
  37.  
  38. HELPFILE=$(datadir)/gnuplot.gih
  39.  
  40. INSTALL = @INSTALL@
  41. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  42. INSTALL_DATA = @INSTALL_DATA@
  43. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44.  
  45. CC = @CC@
  46. CPPFLAGS = @CPPFLAGS@
  47. DEFS  = @DEFS@
  48. INCLUDES = -I. -I$(top_srcdir)
  49. CFLAGS = @CFLAGS@
  50. LDFLAGS = @LDFLAGS@
  51.  
  52. COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
  53. LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
  54.  
  55. # This stuff is obsolete now. Use the appropriate configure options!
  56. #
  57. # Additional devices you can add.
  58. # -DAPOLLO      Apollo Graphics Primitive Resource (window resize after replot)
  59. # -DGPR         Apollo Graphics Primitive Resource (fixed-size window)
  60. # -DCGI         SCO CGI
  61. # -DIRIS        IRIS4D series computer
  62. # -DSUN         Sun Microsystems Workstation
  63. # -DLINUXVGA    Linux PC with SuperVGA library
  64. # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  65. # -DUNIXPLOT    unixplot
  66. # -DGNUGRAPH    use GNU graphics version of UNIX plot library
  67. #               This can only be used in combination with -DUNIXPLOT
  68. # TERMFLAGS = @TERMFLAGS@
  69.  
  70. #  -lplot if you have -DUNIXPLOT in TERMFLAGS
  71. #  -lsuntool -lsunwindow -lpixrect  if you have -DSUN in TERMFLAGS
  72. #  -lgl_s if -DIRIS in TERMFLAGS
  73. #  -lccgi if -DCGI in TERMFLAGS
  74. #  -lvga if -DLINUXVGA in TERMFLAGS
  75. TERMLIBS = @TERMLIBS@
  76. TERMXLIBS = @TERMXLIBS@
  77.  
  78. LIBS = @LIBS@
  79. XLIBS = @X_LIBRARIES@
  80.  
  81. # Where to send email about bugs and comments (locally)
  82. EMAIL = bug-gnuplot@dartmouth.edu
  83.  
  84. # Lasergnu is a handy shell script for creating a plot from the
  85. # command line and sending it directly to the printer. It currently
  86. # supports PostScript and imagen printers, and probably would need
  87. # tailoring to your site.
  88. # Use lasergnu_install to install lasergnu.
  89. # Use lasergnu_noinstall to not install lasergnu (default).
  90. LASERGNU = @LASERGNU@
  91.  
  92. ############################################################
  93. # -DREADLINE:
  94. #   If READLINE is defined, then command-line editing is supported.
  95. #   Otherwise, your normal terminal editing is all you get.
  96. #   Some machines will not support this, and they will turn this
  97. #   option off (for example, apollos running SR10.2 or SR10.3 and
  98. #   loaded with BSD4.3 instead of SYS5). Note: problems with
  99. #   gnuplot prompts have been noted when this feature is selected
  100. #   on IBM RS/6000 AIX, and compile errors are encountered on
  101. #   Sequent Dynix 3 and Convex OS 9.0.
  102. # -DNOCWDRC:
  103. #   If NOCWDRC is defined, then any .gnuplot in the current directory
  104. #   is not read on startup. This is a security consideration
  105. #   especially for root users ( we recommend you define -DNOCWDRC ).
  106. # -ISC22 to circumvent missing plots past the first on ISC 2.2
  107.  
  108. #  -DNO_MEMSET if you don't have memset()
  109. #  -DHAVE_BZERO if you have bzero() instead and no memset().
  110. #    This works only if the second argument to memset() is 0! 
  111. #  -DNO_MEMCPY if you don't have memcpy()
  112. #  -DHAVE_BCOPY if you have bcopy() instead and no memcpy()
  113. #  -DGAMMA=foo if your gamma function is called foo(). Apollos and
  114. #    Linux have lgamma(3m). The default is -DGAMMA=gamma.
  115. #  -DHAVE_GETCWD if your unix uses getcwd() instead of getwd()
  116. #    this is needed by HP-UX and Cray Unicos systems.
  117. #  -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
  118. #    "every other plot" problem.
  119. #  -DCRIPPLED_SELECT if "select errors" are encountered with X. This
  120. #    option is needed on SVR3 platforms with incomplete support for
  121. #    the BSD select() system call
  122. #  -DHAVE_LOCALE if your system uses the 'setlocale' function to
  123. #    support foreign charactersets (currently only ISO8859-1).
  124. #  -DSYSTEM_TIME to use the system-provided set of time routines -
  125. #    in case the gnuplot routines in time.c misbehave
  126. #  -Dunix is required to explicitly define "unix" for SCO and IBM
  127. #          RS/6000 running AIX 3.2
  128.  
  129. #
  130. # You probably don't need to change anything below here.
  131. #
  132.  
  133. ACLOCAL = @ACLOCAL@
  134. AUTOCONF = @AUTOCONF@
  135. AUTOMAKE = @AUTOMAKE@
  136. AUTOHEADER = @AUTOHEADER@
  137. ACLOCAL_AMFLAGS = -I m4
  138. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  139. CONFIG_HEADER_IN = config.hin
  140. CONFIG_HEADER = config.h
  141. GZIP = --best
  142. TAR = tar
  143. ####################################################################
  144. #
  145.  
  146.  
  147. # definitions for macros used in makefile.all (updated automatically)
  148.  
  149. O=o
  150. T=$(srcdir)/term/
  151. D=$(srcdir)/docs/
  152. L=$(srcdir)/docs/latextut/
  153. Q=$(srcdir)/docs/old/
  154. S=$(srcdir)/docs/ps/
  155. M=$(srcdir)/demo/
  156. N=$(srcdir)/NeXT/
  157. P=$(srcdir)/os2/
  158. W=$(srcdir)/win/
  159.  
  160. #standard unix make does not support included makefiles.
  161. #we inline the contents of makefile.all here
  162. #it will be updated using a script whenever makefile.all is changed
  163.  
  164.  
  165. #<<<makefile.all>>>
  166. ########################################################
  167. #
  168. # $Id: Makefile.in,v 1.50 1998/06/18 14:55:00 ddenholm Exp $
  169. #
  170. ########################################################
  171. #
  172. # Please note that this is NOT a standalone makefile
  173. # it is intended to be merged into, or included by
  174. # other makefiles once some macros have been defined
  175. #
  176. # If this segment appears in a makefile other than makefile.all,
  177. # do not modify it in situ. This segment will be entirely
  178. # replaced in all makefiles whenever makefile.all is updated
  179. #
  180. # If you are porting gnuplot to a new system, it would
  181. # be very helpful if you could include this one in it.
  182. # This reduces the amount of work required when files are
  183. # added to the distribution
  184. #
  185. # note that there exists a file gnuplot.opt which lists all the
  186. # core files (but without extension)
  187. #
  188. # please define
  189. # O as the object extension
  190. # T as the prefix for terminals (eg term/ or [.term])
  191. # D as the prefix for docs (eg docs/)
  192. # L as the prefix for latex tutorial (eg docs/latextut/ or [.docs.latextut])
  193. # Q as the prefix for old doc files (eg docs/old)
  194. # S as the prefix for postscript docs (eg docs/ps)
  195. # M as the prefix for demos (eg demo/)
  196. # N as the prefix for NeXT (eg NeXT/)
  197. # P as the prefix for OS/2 (eg os2/)
  198. # W as the prefix for Windows (eg win/)
  199.  
  200. ####################################################################
  201. # List of object files except version.$(O)
  202. COREOBJS = alloc.$(O) binary.$(O) bitmap.$(O) command.$(O) contour.$(O)\
  203.     datafile.$(O) eval.$(O) fit.$(O) graphics.$(O) graph3d.$(O) help.$(O)\
  204.     hidden3d.$(O) internal.$(O) interpol.$(O) matrix.$(O) misc.$(O)\
  205.     parse.$(O) plot.$(O) plot2d.$(O) plot3d.$(O) readline.$(O)\
  206.     scanner.$(O) set.$(O) show.$(O) specfun.$(O) standard.$(O) stdfn.$(O)\
  207.     term.$(O) time.$(O) util.$(O) util3d.$(O)
  208.  
  209. ####################################################################
  210. # List of source files
  211. # Used for making shar files, lint, and some dependencies.
  212.  
  213. CSOURCE = alloc.c binary.c bitmap.c command.c contour.c datafile.c eval.c \
  214.       fit.c graphics.c graph3d.c help.c hidden3d.c internal.c interpol.c \
  215.       matrix.c misc.c parse.c plot.c plot2d.c plot3d.c readline.c \
  216.       scanner.c set.c show.c specfun.c standard.c stdfn.c term.c time.c \
  217.       util.c util3d.c version.c
  218.  
  219. HEADERS = alloc.h ansichek.h binary.h bitmap.h fit.h fnproto.h help.h \
  220.       matrix.h national.h plot.h protos.h setshow.h stdfn.h syscfg.h term.h
  221.  
  222. CORETERM = $(T)aed.trm $(T)ai.trm $(T)amiga.trm $(T)apollo.trm \
  223.        $(T)atariaes.trm $(T)atarivdi.trm $(T)cgi.trm $(T)cgm.trm \
  224.        $(T)compact.c $(T)corel.trm $(T)debug.trm $(T)djsvga.trm \
  225.        $(T)driver.h $(T)dumb.trm $(T)dxf.trm $(T)dxy.trm $(T)eepic.trm \
  226.        $(T)emxvga.trm $(T)epson.trm $(T)excl.trm $(T)fg.trm $(T)fig.trm \
  227.        $(T)gif.trm $(T)gnugraph.trm $(T)gpic.trm $(T)gpr.trm \
  228.        $(T)grass.trm $(T)hp26.trm $(T)hp2648.trm $(T)hp500c.trm \
  229.        $(T)hpgl.trm $(T)hpljii.trm $(T)hppj.trm $(T)imagen.trm \
  230.        $(T)impcodes.h $(T)iris4d.trm $(T)kyo.trm $(T)latex.trm \
  231.        $(T)linux.trm $(T)mac.trm $(T)metafont.trm $(T)mgr.trm \
  232.        $(T)mif.trm $(T)multitos.trm $(T)next.trm $(T)object.h \
  233.        $(T)pbm.trm $(T)pc.trm $(T)pm.trm $(T)png.trm $(T)post.trm \
  234.        $(T)pslatex.trm $(T)pstricks.trm $(T)qms.trm $(T)regis.trm \
  235.        $(T)rgip.trm $(T)sun.trm $(T)t410x.trm $(T)table.trm \
  236.        $(T)tek.trm $(T)texdraw.trm $(T)tgif.trm $(T)tkcanvas.trm \
  237.        $(T)tpic.trm $(T)unixpc.trm $(T)unixplot.trm $(T)v384.trm \
  238.        $(T)vws.trm $(T)win.trm $(T)x11.trm $(T)xlib.trm
  239.  
  240. CSOURCE8 = bf_test.c gplt_x11.c
  241.  
  242. NEXTSRC  = $(N)Controller.h $(N)Controller.m $(N)GnuTerm.iconheader \
  243.        $(N)GnuTerm.tiff $(N)GnuTerm_main.m $(N)GnuView.h \
  244.        $(N)GnuView.m $(N)Makefile $(N)Makefile.postamble \
  245.        $(N)Makefile.preamble $(N)PB.gdbinit $(N)PB.project \
  246.        $(N)README.rtf $(N)bigger.tiff $(N)gnuviewController.h \
  247.        $(N)gnuviewController.m $(N)smaller.tiff \
  248.        $(N)English.lproj/GnuTerm.nib/data.classes \
  249.        $(N)English.lproj/GnuTerm.nib/data.nib \
  250.        $(N)English.lproj/gnuview.nib/bigger.tiff \
  251.        $(N)English.lproj/gnuview.nib/data.classes \
  252.        $(N)English.lproj/gnuview.nib/data.nib \
  253.        $(N)English.lproj/gnuview.nib/smaller.tiff
  254.  
  255. OS2SRC = $(P)dialogs.c $(P)dialogs.h $(P)gclient.c $(P)gnuplot.ico \
  256.      $(P)gnupmdrv.c $(P)gnupmdrv.def $(P)gnupmdrv.h $(P)gnupmdrv.ipf \
  257.      $(P)gnupmdrv.rc $(P)print.c
  258.  
  259. WINDOWS = $(W)geticon.c $(W)wcommon.h $(W)wgnupl32.def $(W)wgnuplib.c \
  260.       $(W)wgnuplib.def $(W)wgnuplib.h $(W)wgnuplib.rc $(W)wgnuplot.def \
  261.       $(W)wgnuplot.hpj $(W)wgnuplot.mnu $(W)wgnuplot.rc $(W)wgraph.c \
  262.       $(W)winmain.c $(W)wmenu.c $(W)wpause.c $(W)wprinter.c \
  263.       $(W)wresourc.h $(W)wtext.c $(W)wtext.h
  264.  
  265. # not C code, but still needed
  266.  
  267. DEMOS = $(M)1.dat $(M)2.dat $(M)3.dat $(M)airfoil.dem $(M)all.dem \
  268.     $(M)animate.dem $(M)battery.dat $(M)big_peak.dat $(M)binary.dem \
  269.     $(M)bivariat.dem $(M)borders.dem $(M)contours.dem $(M)controls.dem \
  270.     $(M)density.fnc $(M)discrete.dem $(M)electron.dem $(M)fit.dem \
  271.     $(M)glass.dat $(M)gnuplot.rot $(M)hemisphr.dat $(M)hexa.fnc \
  272.     $(M)hidden.dem $(M)klein.dat $(M)lcdemo.dat $(M)line.fnc \
  273.     $(M)mgr.dem $(M)moli3.dat $(M)multimsh.dem $(M)multiplt.dem \
  274.     $(M)param.dem $(M)polar.dem $(M)poldat.dem $(M)prob.dem \
  275.     $(M)prob2.dem $(M)random.dem $(M)reflect.fnc $(M)reread.bor \
  276.     $(M)scatter.dem $(M)scatter2.dat $(M)silver.dat $(M)simple.dem \
  277.     $(M)singulr.dem $(M)sound.par $(M)sound2.par $(M)soundvel.dat \
  278.     $(M)spline.dem $(M)start.par $(M)stat.inc $(M)steps.dat \
  279.     $(M)steps.dem $(M)surface1.dem $(M)surface2.dem $(M)timedat.dat \
  280.     $(M)timedat.dem $(M)using.dat $(M)using.dem $(M)vector.dem \
  281.     $(M)whale.dat $(M)world.cor $(M)world.dat $(M)world.dem
  282.  
  283. ETC =   0BUGS 0FAQ 0INSTALL 0PORTING 0README ChangeLog CodeStyle Copyright \
  284.     INSTALL.gnu Makefile.in NEWS PGPKEYS TODO acconfig.h $(ACLOCAL_M4) \
  285.     amiga.c buildvms.com commitvers $(CONFIG_HEADER_IN) configure \
  286.     configure.in corgraph.asm corplot.c ctrl87.c ctrl87.h descrip.mms \
  287.     djconfig.sh errorfix.sh genopt.com gnuplot.def gnuplot.el gnuplot.opt \
  288.     gnuplot.prj header.mac hrcgraph.asm install-sh intergra.x11 lasergnu \
  289.     lineproc.mac linkopt.vms linkopt.ztc make_vms.com makefile.286 \
  290.     makefile.all makefile.amg makefile.ami makefile.cyg makefile.dj2 \
  291.     makefile.djg makefile.emx makefile.g makefile.mgw makefile.msc \
  292.     makefile.msw makefile.mto makefile.nt makefile.os2 makefile.os9 \
  293.     makefile.st makefile.tc makefile.unx makefile.vms makefile.wc \
  294.     makefile.win makefile.ztc missing mkinstalldirs os9.c pcgraph.asm \
  295.     rgipgnu stamp-h.in strftime.c vms.c m4/msdos.m4 m4/next.m4 \
  296.     m4/search-hdr.m4 m4/search-lib.m4 $(T)README 
  297.  
  298. # Documentation and help files
  299. DOCS1 = $(D)Makefile.in $(D)README $(D)checkdoc.c $(D)doc2gih.c \
  300.     $(D)doc2hlp.c $(D)doc2hlp.com $(D)doc2html.c $(D)doc2info.c \
  301.     $(D)doc2ipf.c $(D)doc2ms.c $(D)doc2rnh.c $(D)doc2rtf.c $(D)doc2tex.c \
  302.     $(D)doc2texi.pl $(D)doc2x.h $(D)gnuplot.1 $(D)lasergnu.1 \
  303.     $(D)makefile.dst $(D)makefile.ami $(D)termdoc.c $(D)titlepag.ms \
  304.     $(D)titlepag.tex $(D)toc_entr.sty $(D)xref.c $(D)xref.h
  305. DOCS2 = $(D)gnuplot.doc $(D)gpcard.tex
  306. DOCS3 = $(L)Makefile.in $(L)eg1.plt \
  307.     $(L)eg2.plt $(L)eg3.dat $(L)eg3.plt \
  308.     $(L)eg4.plt $(L)eg5.plt $(L)eg6.plt \
  309.     $(L)header.tex $(L)linepoin.plt $(L)makefile.dst $(L)tutorial.tex
  310. DOCS4 = $(S)Makefile $(S)README $(S)ps_file.doc $(S)ps_guide.ps \
  311.     $(S)ps_symbols.gpi
  312. DOCS5 = $(Q)ChangeLog.old $(Q)History.old $(Q)README.3d $(Q)README.3p1 \
  313.     $(Q)README.3p2 $(Q)README.3p3 $(Q)README.3p4 $(Q)README.3p5 \
  314.     $(Q)README.ami $(Q)README.emx $(Q)README.fit $(Q)README.gnu \
  315.     $(Q)README.iso $(Q)README.mf $(Q)README.nex $(Q)README.os2 \
  316.     $(Q)README.pic $(Q)README.pro $(Q)README.win $(Q)README.x11 \
  317.     $(Q)README.xli $(Q)makefile.r
  318.  
  319. DOCS  = $(DOCS1) $(DOCS2) $(DOCS3) $(DOCS4) $(DOCS5)
  320.  
  321. #########################################################################
  322. # Simple Dependencies
  323. # - note that VMS requires space before and after the :
  324.  
  325. $(COREOBJS) : plot.h protos.h stdfn.h
  326.  
  327. help.$(O) misc.$(O) : help.h
  328.  
  329. protos.h : alloc.h
  330.  
  331. graphics.$(O) graph3d.$(O) misc.$(O) plot.$(O) set.$(O) show.$(O) term.$(O) : setshow.h
  332.  
  333. fit.$(O) : fit.c fit.h matrix.h plot.h
  334.  
  335. matrix.$(O) : matrix.c matrix.h fit.h
  336.  
  337. bitmap.$(O) term.$(O) : bitmap.h
  338.  
  339. term.$(O) : term.h $(CORETERM)
  340.  
  341. #>>>makefile.all<<<
  342.  
  343. ####################################################
  344. # (that's the end of makefile.all, by the way...)
  345.  
  346. # List of object files except version.o
  347.  
  348. OBJS = $(COREOBJS) @NEXTOBJS@
  349.  
  350. ################################################################
  351.  
  352. install: all $(LASERGNU)
  353.     $(srcdir)/mkinstalldirs $(bindir)
  354.     $(srcdir)/mkinstalldirs $(datadir)
  355.     $(srcdir)/mkinstalldirs $(mandir)/man1
  356.     $(INSTALL_PROGRAM) gnuplot $(bindir)/gnuplot
  357.     test ! -f gnuplot_x11 || $(INSTALL_PROGRAM) gnuplot_x11 $(bindir)/gnuplot_x11
  358.     -$(INSTALL_DATA) $(srcdir)/docs/gnuplot.1 $(mandir)/man1/gnuplot.1
  359.     -cd docs && $(MAKE) $(MFLAGS) install
  360.     @LINUXSUID@
  361.  
  362. lasergnu_install: lasergnu docs/lasergnu.1
  363.     $(INSTALL_SCRIPT) $(srcdir)/lasergnu $(bindir)/lasergnu
  364.     $(INSTALL_DATA) $(srcdir)/docs/lasergnu.1 $(mandir)/man1/lasergnu.1
  365.  
  366. lasergnu_noinstall:
  367.  
  368. uninstall:
  369.     rm -f $(bindir)/gnuplot $(bindir)/gnuplot_x11
  370.     rm -f $(mandir)/man1/gnuplot.1 $(mandir)/man1/lasergnu.1
  371.     cd docs && $(MAKE) $(MFLAGS)
  372.  
  373. ################################################################
  374. # Dependencies
  375.  
  376. .c.o:
  377.     $(COMPILE) -c $<
  378.  
  379. gnuplot: $(OBJS) version.o
  380.     $(LINK) $(OBJS) version.o $(TERMLIBS) $(TERMXLIBS) $(LIBS)
  381.  
  382. gnuplot_x11: gplt_x11.o stdfn.o
  383.     $(LINK) gplt_x11.o stdfn.o $(XLIBS) $(LIBS)
  384.  
  385. doc:
  386.     cd docs && $(MAKE) $(MFLAGS) gnuplot.gih
  387.  
  388. demo/binary1 demo/binary2 demo/binary3: bf_test
  389.     wd=`pwd` && cd $(srcdir)/demo && $$wd/bf_test
  390.  
  391. bf_test: bf_test.o binary.o alloc.o
  392.     $(LINK) bf_test.o binary.o alloc.o $(LIBS)
  393.  
  394. errorfix: $(srcdir)/errorfix.sh
  395.     $(srcdir)/errorfix.sh $(srcdir)
  396.     touch errorfix
  397.  
  398. command.o: command.c fit.h help.h setshow.h
  399.     $(COMPILE) -DHELPFILE=\"$(HELPFILE)\" -c $<
  400.  
  401. show.o: show.c plot.h setshow.h
  402.     $(COMPILE) -DHELPFILE=\"$(HELPFILE)\" -DGNUPLOT_BINDIR=\"$(bindir)\" -c $<
  403.  
  404. term.o: term.c term.h $(CORETERM)
  405.     $(COMPILE) -I./term -I$(top_srcdir)/term -c $<
  406.  
  407. version.o: version.c
  408.     $(COMPILE) -DCONTACT=\"$(EMAIL)\" -c $<
  409.  
  410. $(COREOBJS) version.o bf_test.o : $(CONFIG_HEADER)
  411.  
  412. ################################################################
  413. # Autoconfig rules
  414. #
  415. # I have enabled these rules, because missing autoconf and
  416. # automake tools are now detected by configure and dealt with.
  417.  
  418. # This rule is disabled because we have no Makefile.am
  419. #$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
  420. #    cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
  421.  
  422. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  423.     cd $(top_builddir) \
  424.       && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  425.  
  426. $(ACLOCAL_M4): configure.in m4/msdos.m4 m4/next.m4 m4/search-hdr.m4 \
  427.         m4/search-lib.m4
  428.     cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  429.  
  430. config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  431.     $(SHELL) ./config.status --recheck
  432.  
  433. $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
  434.     cd $(srcdir) && $(AUTOCONF)
  435.  
  436. $(CONFIG_HEADER): stamp-h
  437.     @:
  438. stamp-h: $(srcdir)/$(CONFIG_HEADER_IN) $(top_builddir)/config.status
  439.     cd $(top_builddir) \
  440.     && CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADER)
  441.        $(SHELL) ./config.status
  442.     @echo timestamp > stamp-h
  443.  
  444. $(srcdir)/$(CONFIG_HEADER_IN): stamp-h.in
  445. $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
  446.     cd $(top_srcdir) && $(AUTOHEADER)
  447.     @echo timestamp > $(srcdir)/stamp-h.in
  448.  
  449. ################################################################
  450. # Miscellaneous targets
  451.  
  452. SOURCES = $(HEADERS) $(CSOURCE) $(CSOURCE8) $(CORETERM) $(NEXTSRC) \
  453.       $(OS2SRC) $(WINDOWS)
  454.  
  455. DISTFILES = $(ETC) $(SOURCES) $(DEMOS) $(DOCS)
  456.  
  457. SUBDIRS = NeXT NeXT/English.lproj NeXT/English.lproj/GnuTerm.nib \
  458.       NeXT/English.lproj/gnuview.nib demo docs docs/latextut docs/old \
  459.       docs/ps m4 os2 term win
  460.  
  461. clean:
  462.     rm -f gnuplot gnuplot_x11 bf_test *.o core *~
  463.     rm -f gnuplot.exe gnuplot_x11.exe bf_test.exe
  464.     rm -f demo/binary? demo/temp.set demo/defaults.ini demo/fit.log \
  465.       demo/soundfit.par
  466.     cd docs && $(MAKE) $(MFLAGS) clean
  467.  
  468. mostlyclean: clean
  469.  
  470. distclean: clean
  471.     rm -f Makefile config.status config.cache $(CONFIG_HEADER) \
  472.       config.log stamp-h docs/Makefile docs/latextut/Makefile
  473.     test "$(srcdir)" = "$(top_builddir)" || rm -rf docs term
  474.  
  475. realclean: distclean
  476.     rm -f TAGS docs/TAGS
  477.  
  478. distdir = $(PACKAGE)-$(VERSION)
  479. top_distdir = $(distdir)
  480.  
  481. dist: distdir
  482.     -chmod -R a+r $(distdir)
  483.     $(TAR) chf - $(distdir) | gzip $(GZIP) > $(distdir).tar.gz
  484.     -rm -rf $(distdir)
  485.  
  486. distdir: $(DISTFILES)
  487.     -rm -rf $(distdir)
  488.     mkdir $(distdir)
  489.     -chmod u+rwx,go+rx $(distdir)
  490.     for subdir in $(SUBDIRS); do \
  491.       test -d $(distdir)/$$subdir \
  492.       || mkdir $(distdir)/$$subdir \
  493.       || exit 1; \
  494.       chmod u+rwx,go+rx $(distdir)/$$subdir; \
  495.     done
  496.     @for file in $(DISTFILES); do \
  497.       d=$(srcdir); \
  498.       test -f $(distdir)/$$file \
  499.       || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  500.       || cp -p $$d/$$file $(distdir)/$$file; \
  501.     done
  502.